package com.xungou.shop.service.impl;

import com.xungou.core.mvc.AbstractService;
import com.xungou.core.mvc.IDao;
import com.xungou.shop.dao.IShop;
import com.xungou.shop.pojo.Shop;
import com.xungou.shop.service.IShopService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;


@Service("shopService")
public class ShopServiceImpl extends AbstractService<Shop> implements IShopService {
    @Resource  
    private IShop iShop;

    @Override
    protected IDao<Shop> getDao() {
        return iShop;
    }

    @Override
    public Shop getShopByUserId(int userId) {
        return iShop.getShopByUserId(userId);
    }

    @Override
    public List<Map<String, Object>> getAuthenticationShopList(Map<String, String> params) {
        return iShop.getAuthenticationShopList(params);
    }

    @Override
    public Map<String, Object> getShopForCheck(Map<String, String> params) {
        return iShop.getShopForCheck(params);
    }
}